﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace MountainORocks
{
    class Particle
    {
        protected Vector2 location;
        protected Vector2 trajectory;

        protected float frame;
        protected float r, g, b, a;
        protected float size;
        protected float rotation;

        public bool Exists;
        public string myType;
        public Vector2 Location
        {
            get
            {
                return this.location;
            }
        }

        public Particle(string newType)
        {
            myType = newType;
            Exists = false; 
        }

        public virtual void Update(float gameTime)
        {
            location += trajectory * gameTime;
            frame -= gameTime;
            if (frame < 0.0f) KillMe();
        }

        public virtual void KillMe()
        {
            Exists = false;
        }

        public virtual void Draw(SpriteBatch spriteBatch, Texture2D spriteText)
        {
        }
    }
}
